{{partial('public/header')}}
<div class="midder">
<div class="mc">
	<h1>{{seo.title}}</h1>
	<div class="cleft">
	<form id="form_note" method="post" onsubmit="return checkNoteForm(this);" action="{{url('space/notes/update')}}">
    <div style="display:none;">
    <input type="hidden" name="{{security.getTokenKey()}}" value="{{security.getToken()}}">
    <input type="hidden" name="noteid" value="{{strNote.noteid}}">
    </div>
    {% if isold %}
	<p class="autosave-tip">现在载入的是自动保存内容，时间&nbsp;<span>{{date('Y-m-d H:i:s',strNote.addtime)}}</span></p>  
    {% endif %}  
    <div class="row note-title">
        <label class="field" for="note_title">题目:</label>
        <div>
            <input tabindex="1" id="note_title" name="title" value="" autofocus type="text">
        </div>
    </div>    
    <div class="row note-text">
        <ul class="control-panel">
            <li class="image-btn">
                <a class="lnk-flat" href="javascript:;" title="插入图片" id="addImg">图片</a>
            </li>
            <li class="link-btn">
                <a class="lnk-flat" href="javascript:;" title="插入链接" id="addLink">链接</a>
            </li>
        </ul>
        <label class="field" for="note_text">正文:</label>
        <textarea tabindex="2"  name="content" id="editor_full" maxlength="20000"></textarea>
    </div>
    <div class="images">
    </div>
    <div class="row note-privacy">
        <label class="field">设置可见: </label>
        <label>
            <input tabindex="3" name="privacy" value="1" checked type="radio"><span>所有人可见</span>
        </label>
        <label>
            <input tabindex="4" name="privacy" value="2" type="radio"><span>仅朋友可见</span>
        </label>
        <label>
            <input tabindex="5" name="privacy" value="3" type="radio"><span>仅自己可见</span>
        </label>
    </div>
    <div class="row note-reply">
        <label class="field" for="cannot_reply">权限设置: </label>
        <label>
            <input tabindex="6" id="cannot_reply" name="isreply" value="0" type="checkbox"><span>不允许回应</span>
        </label>
    </div>
    <div class="row footer">
        <input tabindex="7" id="publish_note" value="发表" class="btn" name="note_submit" type="submit">
        <span class="bn-flat cancel-note">
            <input tabindex="8" id="cancel_note" value="取消" class="bn-flat" name="cancel_note" type="button" onClick="history.go(-1)">
        </span>
    </div>
{{hook('Editor', 'show', ['arrPhotos':arrPhotos])}}
<style>
.item-thumb-list{ padding:0px}
</style>
<script language="javascript">
$(function(){
	$('#addImg').bind('click',function(){
		var ajaxurl = "{{url('home/images/add')}}";
		var typeid = '{{strNote.noteid}}';
		var data = "{'type':'note','typeid':'"+typeid+"'}";		
		addPhoto(ajaxurl, data);
	});
	$('#addLink').bind('click',function(){	
		addLink();
	});
});
</script>    
</form>
<div id="preview"></div>


		
    	
    </div><!--//cleft-->
    <div class="cright">
		
    </div><!--//right-->
</div>
</div>